package cn.com.connected.entity;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;

/**
 * 微信用户
 * 
 * @author sms
 * @email sms@live.com
 * @date 2025-04-10 16:15:15
 */
@TableName(value = "member")
@Data
@ApiModel(description = "微信用户")
public class MemberEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(type = IdType.ASSIGN_UUID)
    @TableField(value = "`id`")
    @ApiModelProperty(value = "")
    private String id;


    @TableField(value = "`mobile`")
    @ApiModelProperty(value = "手机号")
    private String mobile;


    @TableField(value = "`nickname`")
    @ApiModelProperty(value = "昵称")
    private String nickname;


    @TableField(value = "`headimgurl`")
    @ApiModelProperty(value = "头像")
    private String headimgurl;


    @TableField(value = "`sex`")
    @ApiModelProperty(value = "性别")
    private Integer sex;


    @TableField(value = "`openid`")
    @ApiModelProperty(value = "微信openid")
    private String openid;


    @TableField(value = "`unionid`")
    @ApiModelProperty(value = "多应用账号统一unionid")
    private String unionid;

    @TableField(value = "`create_time`")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "`state`")
    @ApiModelProperty(value = "记录状态")
    private Integer state;
}